<template>
  <div>
    <myDemo :time='time' @b='b'></myDemo>
    <p>{{time}}</p>
  </div>
</template>
<script>
  import myDemo from './myDemo.vue'
  export default {
    components: {
      myDemo
    },
    data () {
      return {
        time: 0
      }
    },
    methods: {
      b (value) {
        this.time = value
      }
    }
  }
</script>
